package org.dromara.common.core.constant;

public interface RedisConst {

    /**
     * redis 缓存前缀
     */
    String CACHE_PREFIX = "nami:";

    /**
     * 在线用户
     */
    String ONLINE_USER = CACHE_PREFIX + "online_user";

    /**
     * 群 max seq
     */
    String GROUP_SEQ_PREFIX = CACHE_PREFIX + "group" + ":" + "max_seq" + ":";

    /**
     * 私聊 max seq
     */
    String SINGLE_CHAT_SEQ_PREFIX = CACHE_PREFIX + ":" + "single" + ":" + "max_seq" + ":";

    /**
     * 消息存储命名字符串
     */
    String CACHE_MESSAGE = "cacheMessage";

    /**
     * 客户端消息id过期时间
     */
    Long CLIENT_MESSAGE_ID_EXPIRE_TIME = 120L;

}
